<?php

// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

use think\Route;
// 注册前台路由到控制器中间件
Route::group('index', function () {
    
    Route::rule('index', 'index/index/index');
    Route::rule('/', 'index/index/index');
});
//闻钱
Route::group('wdgroup',function(){
    Route::rule('detail','index/index/detail');
    Route::rule('add','index/index/add');
    Route::get('','index/index/wdgroup');
    Route::get('/','index/index/wdgroup');
    
});
//文峰楼
Route::group('wfgroup',function(){
    Route::rule('detail','index/wfgroup/detail');
    Route::rule('add','index/wfgroup/add');
    Route::get('','index/wfgroup/index');
    Route::get('/','index/wfgroup/index');
    
});
//三十六计
Route::group('wpgroup',function(){
    Route::rule('detail','index/wpgroup/detail');
    Route::rule('add','index/wpgroup/add');
    Route::get('/','index/wpgroup/index');
    Route::get('','index/wpgroup/index');
    
});
//谋士实战
Route::group('adviser',function(){
    
    Route::rule('edit','index/adviser/edit');
    Route::rule('baoming','index/adviser/baoming');
    Route::rule('logedit','index/adviser/logedit');//日志
    Route::rule('lists','index/adviser/lists');//好事
    Route::rule('author','index/adviser/author');//谋士作者
    Route::rule('detail','index/adviser/detail');
    Route::rule('tutorial','index/adviser/tutorial');//使用指南
    Route::rule('convention','index/adviser/convention');//公约
    Route::rule('guide','index/adviser/guide');//手册
    Route::get('','index/adviser/index');
    Route::get('/','index/adviser/index');
});
//资源
Route::group('resource',function(){
    Route::rule('detail','index/resource/detail');
    Route::rule('add','index/resource/add');
    Route::get('','index/resource/index');
    Route::get('/','index/resource/index');
    
});
//线下活动
Route::group('special',function(){
    Route::rule('baoming','index/special/baoming');
    Route::rule('detail','index/special/detail');
    Route::rule('add','index/special/add');
    Route::get('','index/special/index');
    Route::get('/','index/special/index');
    
});
//成员详细
Route::group('member',function(){
    Route::rule('audit','index/member/audit');
    Route::rule('comments','index/member/comments');
    Route::rule('favorites','index/member/favorites');
    Route::rule('submit','index/member/submit');
    Route::rule('level','index/member/level');
    Route::get('','index/member/index');
    Route::get('/','index/member/index');
    
});
//用户
Route::group('user',function(){
    Route::rule('logout','index/user/logout');
    Route::rule('info','index/user/info');
    Route::rule('comments','index/user/comments');
    Route::rule('favorites','index/user/favorites');
    Route::get('','index/user/index');
    Route::get('/','index/user/index');
    
});
//官方专栏
Route::group('week',function(){
    Route::rule('detail','index/reward/detail');
    Route::get('','index/reward/index?type=week');
    Route::get('/','index/reward/index?type=week');
    
});
Route::group('days',function(){
    Route::rule('detail','index/reward/detail');
    Route::get('','index/reward/index?type=days');
    Route::get('/','index/reward/index?type=days');
    
});
Route::group('favorites',function(){
    Route::rule('detail','index/reward/detail');
    Route::get('','index/reward/index?type=fa');
    Route::get('/','index/reward/index?type=fa');
    
});
Route::rule('/alipay/notify', 'index/payment/alipay');
Route::rule('/wechat/notify', 'index/payment/wechat');
Route::rule('/notice', 'index/notice/index');
Route::rule('/login', 'index/user/login');
Route::rule('/advisers', 'index/index/adviser');
//悬赏
Route::rule('reward', 'index/index/reward');
Route::rule('/about', 'index/index/about');
Route::rule('/', 'index/index/index');

    
